function fun(b,a){
    if($(b).attr('shu')==0 && $(a).attr('shu')==1){
        $('table').find('tr').find('th').parent().siblings().remove()
for (var i = 0; i < json.length; i++) {
    $('<tr><td>' + json[i].diqu + '</td><td>' + json[i].java + '</td><td>' + json[i].jingying + '</td><td>' + json[i].qianduan + '</td><td>' + json[i].ui + '</td><td>' + json[i].shuju + '</td><td>' + json[i].python + '</td><td>' + json[i].unity + '</td></tr>').appendTo('table');
};
}else if($(b).attr('shu')==0 && $(a).attr('shu')==2){
    $('table').find('tr').find('th').parent().siblings().remove()
for (var i = 0; i < json.length; i++) {
    $('<tr><td>' + json[i].diqu1 + '</td><td>' + json[i].java1 + '</td><td>' + json[i].jingying1 + '</td><td>' + json[i].qianduan1+ '</td><td>' + json[i].ui1 + '</td><td>' + json[i].shuju1 + '</td><td>' + json[i].python1 + '</td><td>' + json[i].unity1 + '</td></tr>').appendTo('table');
};
    }else if($(b).attr('shu')==0 && $(a).attr('shu')==3){
    $('table').find('tr').find('th').parent().siblings().remove()
for (var i = 0; i < json.length; i++) {
    $('<tr><td>' + json[i].diqu2 + '</td><td>' + json[i].java2 + '</td><td>' + json[i].jingying2 + '</td><td>' + json[i].qianduan2+ '</td><td>' + json[i].ui2 + '</td><td>' + json[i].shuju2 + '</td><td>' + json[i].python2 + '</td><td>' + json[i].unity2 + '</td></tr>').appendTo('table');
};
    }else if($(b).attr('shu')==2 && $(a).attr('shu')==1){
    $('table').find('tr').find('th').parent().siblings().remove()
for (var i = 0; i < json.length; i++) {
    $('<tr><td>' + json[i].diqu3 + '</td><td>' + json[i].java3 + '</td><td>' + json[i].jingying3 + '</td><td>' + json[i].qianduan3+ '</td><td>' + json[i].ui3 + '</td><td>' + json[i].shuju3 + '</td><td>' + json[i].python3 + '</td><td>' + json[i].unity3 + '</td></tr>').appendTo('table');
};
    }else if($(b).attr('shu')==2 && $(a).attr('shu')==2){
    $('table').find('tr').find('th').parent().siblings().remove()
for (var i = 0; i < json.length; i++) {
    $('<tr><td>' + json[i].diqu4 + '</td><td>' + json[i].java4 + '</td><td>' + json[i].jingying4 + '</td><td>' + json[i].qianduan4+ '</td><td>' + json[i].ui4 + '</td><td>' + json[i].shuju4 + '</td><td>' + json[i].python4 + '</td><td>' + json[i].unity4 + '</td></tr>').appendTo('table');
};
    }else if($(b).attr('shu')==2 && $(a).attr('shu')==3){
    $('table').find('tr').find('th').parent().siblings().remove()
for (var i = 0; i < json.length; i++) {
    $('<tr><td>' + json[i].diqu5 + '</td><td>' + json[i].java5 + '</td><td>' + json[i].jingying5 + '</td><td>' + json[i].qianduan5+ '</td><td>' + json[i].ui5 + '</td><td>' + json[i].shuju5 + '</td><td>' + json[i].python5 + '</td><td>' + json[i].unity5 + '</td></tr>').appendTo('table');
};
    }
}